public static class StringExtension
{
    public static int GetWordCount(this string s) =>
        s.Split().Length;
}